"""Django admin configuration for the Gold membership app."""

from django.contrib import admin

from .models import GoldUser


@admin.register(GoldUser)
class GoldAdmin(admin.ModelAdmin):
    model = GoldUser
    raw_id_fields = ("user", "projects")
    list_display = ("user", "level", "modified_date", "subscribed")
    list_filter = ("level",)
    search_fields = ("projects__slug", "user__email", "user__username", "stripe_id")
